import { createRouter, createWebHistory } from "vue-router";
import WelCome from "./WelCome.vue";
import Base64Code from "./tools/Base64Code.vue";
import BarcodeGenerate from "./tools/BarcodeGenerate.vue";
import JsonFormat from "./tools/JsonFormat.vue";
import HtmlFormat from "./tools/HtmlFormat.vue";
import CommonNavigation from "./Navigation.vue";
import FlutterNavigation from "./navigation/FlutterNavigation.vue";
import NetResource from "./NetResource.vue";
import TimestampConvert from "./tools/TimestampConvert.vue";

const routes = [
    { path: '/', name: 'Welcome', component: WelCome },
    { path: '/base64', name: 'Base64Code', component: Base64Code },
    { path: '/json', name: 'JsonFormat', component: JsonFormat },
    { path: '/html', name: 'HtmlFormat', component: HtmlFormat },
    { path: '/navigation', name: 'Navigation', component: CommonNavigation },
    { path: '/barcode', name: 'BarcodeGenerate', component: BarcodeGenerate },
    { path: '/resources', name: 'Resources', component: NetResource },
    { path: '/timestamp', name: 'TimestampConvert', component: TimestampConvert },
    { path: '/navigation/flutter', name: 'FlutterNavigation', component: FlutterNavigation }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router;